package com.monkey.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.monkey.dao.pojo.Tag;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author：monkey-L
 * @description: .
 * @date: 10:44 2021/10/4
 */
@Repository
public interface TagMapper extends BaseMapper<Tag> {
    /*
     *功能描述:
     * @author monkey-L
     * @date
     * @param
     * @return
     */
    List<Tag> findTagsByArticleId(Long articleId);
    //根据id查询最热的标签，前面的limit条
    List<Long> findHotsTagIds(int limit);
    List<Tag> findTagsByTagId(List<Long> tagIds);
}
